-- GENERATED SPELL FOR [Dust Stormer] --


function spell0_11744(pUnit, Event) --@Lightning Cloud,n/a--
pUnit:FullCastSpellOnTarget(19513,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11744', 15000, 1)
end

function spell1_11744(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(19514,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11744', 0, 1)
end

function Sorts_11744(pUnit, Event)
local choix_sorts_11744 = math.random(0, 1)
if choix_sorts_11744 == 0 then
pUnit:RegisterEvent('spell0_11744', 1, 1)
end
if choix_sorts_11744 == 1 then
pUnit:RegisterEvent('spell1_11744', 1, 1)
end
end

function mob11744_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11744', math.random(1500, 3000), 1)
end

function mob11744_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11744_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11744_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11744, 1, 'mob11744_Action')
RegisterUnitEvent(11744, 2, 'mob11744_Leave')
RegisterUnitEvent(11744, 3, 'mob11744_Kill')
RegisterUnitEvent(11744, 4, 'mob11744_Die')
